#!/usr/bin/env python3
"""
Simple script to run the InCloud MCP Server
"""
import sys
import os

# Add the src directory to Python path
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src'))

try:
    from incloud_mcp_server.server import main
    
    # Set default arguments
    sys.argv = [
        'incloud-mcp-server',
        'run',
        '--config', 'config.yaml',
        '--transport', 'sse',
        '--port', '8000',
        '--host', '0.0.0.0',
        '--log-level', 'INFO'
    ]
    
    print("Starting InCloud MCP Server...")
    print("Configuration: config.yaml")
    print("Transport: SSE")
    print("Port: 8000")
    print("Host: 0.0.0.0")
    print("=" * 50)
    
    main()
    
except Exception as e:
    print(f"Error starting server: {e}")
    import traceback
    traceback.print_exc()
